// #include<iostream>

// int main()
// {
//     std::cout<<"client makefile test!!!"<<std::endl;
//     return 0;
// }


#include"tcp_client.hpp"

void user()
{
    std::cout<<"use error !!!!! \n\n    user->  server [ip_number] [port_number] \n\n"<<std::endl;

}



int main(int argc, char* argv[])
{
    if(argc != 3)
    {
       user();
       return 1;
    }

    int16_t port = std::stoi(argv[2]);
    //int16_t port = std::stoi(std::string(argv[1]));
    std::string ip = argv[1];

    zxf::Tcp_client cc(ip, port);
    cc.initServer();
    cc.start();
    
    return 0;
}
